/**
 * Implementacion de la clase GraphFactory.
 */

#include "graphFactory.hpp"

GraphFactory::GraphFactory(std::string &fileToParseN, std::string &fileToParseE,std::string &fileConfig,
						   Logger *logger, int numberOfFieldsN, int numberOfFieldsE, Graph * graph)
{
	this->graph = graph;
	this->nodeValidator.create(fileToParseN,fileConfig,logger,numberOfFieldsN,(this->graph));
	this->edgeValidator.create(fileToParseE,fileConfig,logger,numberOfFieldsE,(this->graph));

}

GraphFactory::~GraphFactory() {

}

void GraphFactory::generateGraph()
{
	this->nodeValidator.validate();
	this->edgeValidator.validate();
}

